home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / utils / easymenu.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  3.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 36 3a 30 | 34 20 31 39 39 35 0a 3b | 14:26:0|4 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 75 74 | 69 6c 73 2f 65 61 73 79 |/lisp/ut|ils/easy|
|00000090| 6d 65 6e 75 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |menu.el.|;;; emac|
|000000a0| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 31 33 20 |s versio|n 19.13 |
|000000b0| 58 45 6d 61 63 73 20 4c | 75 63 69 64 2e 0a 3b 3b |XEmacs L|ucid..;;|
|000000c0| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000d0| 6f 6e 20 32 2e 32 35 3b | 20 31 2d 53 65 70 2d 39 |on 2.25;| 1-Sep-9|
|000000e0| 34 2e 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |4..;;; o|ptimizat|
|000000f0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|00000100| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|00000110| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|00000120| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000130| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000140| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000150| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000160| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000170| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000180| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000190| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|000001a0| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|000001b0| 39 22 29 29 29 0a 20 20 | 20 20 28 65 72 72 6f 72 |9"))). | (error|
|000001c0| 20 22 54 68 69 73 20 66 | 69 6c 65 20 77 61 73 20 | "This f|ile was |
|000001d0| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|000001e0| 63 73 20 31 39 2e 22 29 | 29 0a 0a 28 66 73 65 74 |cs 19.")|)..(fset|
|000001f0| 20 27 65 61 73 79 2d 6d | 65 6e 75 2d 64 65 66 69 | 'easy-m|enu-defi|
|00000200| 6e 65 20 27 28 6d 61 63 | 72 6f 20 2e 20 23 5b 28 |ne '(mac|ro . #[(|
|00000210| 73 79 6d 62 6f 6c 20 6d | 61 70 73 20 64 6f 63 20 |symbol m|aps doc |
|00000220| 6d 65 6e 75 29 20 22 c0 | c1 5c 6e c3 0c 46 c5 c6 |menu) ".|.\n..F..|
|00000230| 5c 6e 44 0e 07 0c 0e 08 | af 05 45 87 22 20 5b 70 |\nD.....|..E." [p|
|00000240| 72 6f 67 6e 20 64 65 66 | 76 61 72 20 73 79 6d 62 |rogn def|var symb|
|00000250| 6f 6c 20 6e 69 6c 20 64 | 6f 63 20 65 61 73 79 2d |ol nil d|oc easy-|
|00000260| 6d 65 6e 75 2d 64 6f 2d | 64 65 66 69 6e 65 20 71 |menu-do-|define q|
|00000270| 75 6f 74 65 20 6d 61 70 | 73 20 6d 65 6e 75 5d 20 |uote map|s menu] |
|00000280| 37 20 22 5c 0a 44 65 66 | 69 6e 65 20 61 20 6d 65 |7 "\.Def|ine a me|
|00000290| 6e 75 20 62 61 72 20 73 | 75 62 6d 65 6e 75 20 69 |nu bar s|ubmenu i|
|000002a0| 6e 20 6d 61 70 73 20 4d | 41 50 53 2c 20 61 63 63 |n maps M|APS, acc|
|000002b0| 6f 72 64 69 6e 67 20 74 | 6f 20 4d 45 4e 55 2e 0a |ording t|o MENU..|
|000002c0| 54 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 53 59 |The argu|ments SY|
|000002d0| 4d 42 4f 4c 20 61 6e 64 | 20 44 4f 43 20 61 72 65 |MBOL and| DOC are|
|000002e0| 20 69 67 6e 6f 72 65 64 | 3b 20 74 68 65 79 20 61 | ignored|; they a|
|000002f0| 72 65 20 70 72 65 73 65 | 6e 74 20 66 6f 72 0a 63 |re prese|nt for.c|
|00000300| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 6f 6e 6c |ompatibi|lity onl|
|00000310| 79 2e 20 20 53 59 4d 42 | 4f 4c 20 69 73 20 6e 6f |y. SYMB|OL is no|
|00000320| 74 20 65 76 61 6c 75 61 | 74 65 64 2e 20 20 49 6e |t evalua|ted. In|
|00000330| 20 6f 74 68 65 72 20 45 | 6d 61 63 73 20 76 65 72 | other E|macs ver|
|00000340| 73 69 6f 6e 73 0a 74 68 | 65 73 65 20 61 72 67 75 |sions.th|ese argu|
|00000350| 6d 65 6e 74 73 20 6d 61 | 79 20 62 65 20 75 73 65 |ments ma|y be use|
|00000360| 64 20 61 73 20 61 20 76 | 61 72 69 61 62 6c 65 20 |d as a v|ariable |
|00000370| 74 6f 20 68 6f 6c 64 20 | 74 68 65 20 6d 65 6e 75 |to hold |the menu|
|00000380| 20 64 61 74 61 2c 20 61 | 6e 64 20 61 0a 64 6f 63 | data, a|nd a.doc|
|00000390| 20 73 74 72 69 6e 67 20 | 66 6f 72 20 74 68 61 74 | string |for that|
|000003a0| 20 76 61 72 69 61 62 6c | 65 2e 0a 0a 54 68 65 20 | variabl|e...The |
|000003b0| 66 69 72 73 74 20 65 6c | 65 6d 65 6e 74 20 6f 66 |first el|ement of|
|000003c0| 20 4d 45 4e 55 20 6d 75 | 73 74 20 62 65 20 61 20 | MENU mu|st be a |
|000003d0| 73 74 72 69 6e 67 2e 20 | 20 49 74 20 69 73 20 74 |string. | It is t|
|000003e0| 68 65 20 6d 65 6e 75 20 | 62 61 72 20 69 74 65 6d |he menu |bar item|
|000003f0| 20 6e 61 6d 65 2e 0a 54 | 68 65 20 72 65 73 74 20 | name..T|he rest |
|00000400| 6f 66 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |of the e|lements |
|00000410| 61 72 65 20 6d 65 6e 75 | 20 69 74 65 6d 73 2e 0a |are menu| items..|
|00000420| 0a 41 20 6d 65 6e 75 20 | 69 74 65 6d 20 69 73 20 |.A menu |item is |
|00000430| 75 73 75 61 6c 6c 79 20 | 61 20 76 65 63 74 6f 72 |usually |a vector|
|00000440| 20 6f 66 20 74 68 72 65 | 65 20 65 6c 65 6d 65 6e | of thre|e elemen|
|00000450| 74 73 3a 20 20 5b 4e 41 | 4d 45 20 43 41 4c 4c 42 |ts: [NA|ME CALLB|
|00000460| 41 43 4b 20 45 4e 41 42 | 4c 45 5d 0a 0a 4e 41 4d |ACK ENAB|LE]..NAM|
|00000470| 45 20 69 73 20 61 20 73 | 74 72 69 6e 67 2d 2d 74 |E is a s|tring--t|
|00000480| 68 65 20 6d 65 6e 75 20 | 69 74 65 6d 20 6e 61 6d |he menu |item nam|
|00000490| 65 2e 0a 0a 43 41 4c 4c | 42 41 43 4b 20 69 73 20 |e...CALL|BACK is |
|000004a0| 61 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 72 75 6e |a comman|d to run|
|000004b0| 20 77 68 65 6e 20 74 68 | 65 20 69 74 65 6d 20 69 | when th|e item i|
|000004c0| 73 20 63 68 6f 73 65 6e | 2c 0a 6f 72 20 61 20 6c |s chosen|,.or a l|
|000004d0| 69 73 74 20 74 6f 20 65 | 76 61 6c 75 61 74 65 20 |ist to e|valuate |
|000004e0| 77 68 65 6e 20 74 68 65 | 20 69 74 65 6d 20 69 73 |when the| item is|
|000004f0| 20 63 68 6f 73 65 6e 2e | 0a 0a 45 4e 41 42 4c 45 | chosen.|..ENABLE|
|00000500| 20 69 73 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f | is an e|xpressio|
|00000510| 6e 3b 20 74 68 65 20 69 | 74 65 6d 20 69 73 20 65 |n; the i|tem is e|
|00000520| 6e 61 62 6c 65 64 20 66 | 6f 72 20 73 65 6c 65 63 |nabled f|or selec|
|00000530| 74 69 6f 6e 0a 77 68 65 | 6e 65 76 65 72 20 74 68 |tion.whe|never th|
|00000540| 69 73 20 65 78 70 72 65 | 73 73 69 6f 6e 27 73 20 |is expre|ssion's |
|00000550| 76 61 6c 75 65 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |value is| non-nil|
|00000560| 2e 0a 0a 41 6c 74 65 72 | 6e 61 74 69 76 65 6c 79 |...Alter|natively|
|00000570| 2c 20 61 20 6d 65 6e 75 | 20 69 74 65 6d 20 6d 61 |, a menu| item ma|
|00000580| 79 20 68 61 76 65 20 74 | 68 65 20 66 6f 72 6d 3a |y have t|he form:|
|00000590| 20 0a 0a 20 20 20 5b 20 | 4e 41 4d 45 20 43 41 4c | .. [ |NAME CAL|
|000005a0| 4c 42 41 43 4b 20 5b 20 | 4b 45 59 57 4f 52 44 20 |LBACK [ |KEYWORD |
|000005b0| 41 52 47 20 5d 20 2e 2e | 2e 20 5d 0a 0a 57 68 65 |ARG ] ..|. ]..Whe|
|000005c0| 72 65 20 4b 45 59 57 4f | 52 44 20 69 73 20 6f 6e |re KEYWO|RD is on|
|000005d0| 65 20 6f 66 20 74 68 65 | 20 73 79 6d 62 6f 6c 20 |e of the| symbol |
|000005e0| 64 65 66 69 6e 65 64 20 | 62 65 6c 6f 77 2e 0a 0a |defined |below...|
|000005f0| 20 20 20 3a 6b 65 79 73 | 20 4b 45 59 53 0a 0a 4b | :keys| KEYS..K|
|00000600| 45 59 53 20 69 73 20 61 | 20 73 74 72 69 6e 67 3b |EYS is a| string;|
|00000610| 20 61 20 63 6f 6d 70 6c | 65 78 20 6b 65 79 62 6f | a compl|ex keybo|
|00000620| 61 72 64 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 |ard equi|valent t|
|00000630| 6f 20 74 68 69 73 20 6d | 65 6e 75 20 69 74 65 6d |o this m|enu item|
|00000640| 2e 0a 0a 20 20 20 3a 61 | 63 74 69 76 65 20 45 4e |... :a|ctive EN|
|00000650| 41 42 4c 45 0a 0a 45 4e | 41 42 4c 45 20 69 73 20 |ABLE..EN|ABLE is |
|00000660| 61 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 3b 20 74 |an expre|ssion; t|
|00000670| 68 65 20 69 74 65 6d 20 | 69 73 20 65 6e 61 62 6c |he item |is enabl|
|00000680| 65 64 20 66 6f 72 20 73 | 65 6c 65 63 74 69 6f 6e |ed for s|election|
|00000690| 0a 77 68 65 6e 65 76 65 | 72 20 74 68 69 73 20 65 |.wheneve|r this e|
|000006a0| 78 70 72 65 73 73 69 6f | 6e 27 73 20 76 61 6c 75 |xpressio|n's valu|
|000006b0| 65 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2e 0a 0a 20 |e is non|-nil... |
|000006c0| 20 20 3a 73 75 66 66 69 | 78 20 4e 41 4d 45 0a 0a | :suffi|x NAME..|
|000006d0| 4e 41 4d 45 20 69 73 20 | 61 20 73 74 72 69 6e 67 |NAME is |a string|
|000006e0| 3b 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 6e |; the na|me of an|
|000006f0| 20 61 72 67 75 6d 65 6e | 74 20 74 6f 20 43 41 4c | argumen|t to CAL|
|00000700| 4c 42 41 43 4b 2e 0a 0a | 20 20 20 3a 73 74 79 6c |LBACK...| :styl|
|00000710| 65 20 53 54 59 4c 45 0a | 20 20 20 0a 53 54 59 4c |e STYLE.| .STYL|
|00000720| 45 20 69 73 20 61 20 73 | 79 6d 62 6f 6c 20 64 65 |E is a s|ymbol de|
|00000730| 73 63 72 69 62 69 6e 67 | 20 74 68 65 20 74 79 70 |scribing| the typ|
|00000740| 65 20 6f 66 20 6d 65 6e | 75 20 69 74 65 6d 2e 20 |e of men|u item. |
|00000750| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 61 | The fol|lowing a|
|00000760| 72 65 0a 64 65 66 69 6e | 65 64 3a 20 20 0a 0a 74 |re.defin|ed: ..t|
|00000770| 6f 67 67 6c 65 3a 20 41 | 20 63 68 65 63 6b 62 6f |oggle: A| checkbo|
|00000780| 78 2e 20 20 0a 20 20 20 | 20 20 20 20 20 43 75 72 |x. . | Cur|
|00000790| 72 65 6e 74 6c 79 20 6a | 75 73 74 20 70 72 65 70 |rently j|ust prep|
|000007a0| 65 6e 64 20 74 68 65 20 | 6e 61 6d 65 20 77 69 74 |end the |name wit|
|000007b0| 68 20 74 68 65 20 73 74 | 72 69 6e 67 20 5c 22 54 |h the st|ring \"T|
|000007c0| 6f 67 67 6c 65 20 5c 22 | 2e 0a 72 61 64 69 6f 3a |oggle \"|..radio:|
|000007d0| 20 41 20 72 61 64 69 6f | 20 62 75 74 74 6f 6e 2e | A radio| button.|
|000007e0| 20 0a 6e 69 6c 3a 20 41 | 6e 20 6f 72 64 69 6e 61 | .nil: A|n ordina|
|000007f0| 72 79 20 6d 65 6e 75 20 | 69 74 65 6d 2e 0a 0a 20 |ry menu |item... |
|00000800| 20 20 3a 73 65 6c 65 63 | 74 65 64 20 53 45 4c 45 | :selec|ted SELE|
|00000810| 43 54 45 44 0a 0a 53 45 | 4c 45 43 54 45 44 20 69 |CTED..SE|LECTED i|
|00000820| 73 20 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 3b |s an exp|ression;|
|00000830| 20 74 68 65 20 63 68 65 | 63 6b 62 6f 78 20 6f 72 | the che|ckbox or|
|00000840| 20 72 61 64 69 6f 20 62 | 75 74 74 6f 6e 20 69 73 | radio b|utton is|
|00000850| 20 73 65 6c 65 63 74 65 | 64 0a 77 68 65 6e 65 76 | selecte|d.whenev|
|00000860| 65 72 20 74 68 69 73 20 | 65 78 70 72 65 73 73 69 |er this |expressi|
|00000870| 6f 6e 27 73 20 76 61 6c | 75 65 20 69 73 20 6e 6f |on's val|ue is no|
|00000880| 6e 2d 6e 69 6c 2e 0a 43 | 75 72 72 65 6e 74 6c 79 |n-nil..C|urrently|
|00000890| 20 6a 75 73 74 20 64 69 | 73 61 62 6c 65 20 72 61 | just di|sable ra|
|000008a0| 64 69 6f 20 62 75 74 74 | 6f 6e 73 2c 20 6e 6f 20 |dio butt|ons, no |
|000008b0| 65 66 66 65 63 74 20 6f | 6e 20 63 68 65 63 6b 62 |effect o|n checkb|
|000008c0| 6f 78 65 73 2e 0a 0a 41 | 20 6d 65 6e 75 20 69 74 |oxes...A| menu it|
|000008d0| 65 6d 20 63 61 6e 20 62 | 65 20 61 20 73 74 72 69 |em can b|e a stri|
|000008e0| 6e 67 2e 20 20 54 68 65 | 6e 20 74 68 61 74 20 73 |ng. The|n that s|
|000008f0| 74 72 69 6e 67 20 61 70 | 70 65 61 72 73 20 69 6e |tring ap|pears in|
|00000900| 20 74 68 65 20 6d 65 6e | 75 20 61 73 0a 75 6e 73 | the men|u as.uns|
|00000910| 65 6c 65 63 74 61 62 6c | 65 20 74 65 78 74 2e 20 |electabl|e text. |
|00000920| 20 41 20 73 74 72 69 6e | 67 20 63 6f 6e 73 69 73 | A strin|g consis|
|00000930| 74 69 6e 67 20 73 6f 6c | 65 6c 79 20 6f 66 20 68 |ting sol|ely of h|
|00000940| 79 70 68 65 6e 73 20 69 | 73 20 64 69 73 70 6c 61 |yphens i|s displa|
|00000950| 79 65 64 0a 61 73 20 61 | 20 73 6f 6c 69 64 20 68 |yed.as a| solid h|
|00000960| 6f 72 69 7a 6f 6e 74 61 | 6c 20 6c 69 6e 65 2e 0a |orizonta|l line..|
|00000970| 0a 41 20 6d 65 6e 75 20 | 69 74 65 6d 20 63 61 6e |.A menu |item can|
|00000980| 20 62 65 20 61 20 6c 69 | 73 74 2e 20 20 49 74 20 | be a li|st. It |
|00000990| 69 73 20 74 72 65 61 74 | 65 64 20 61 73 20 61 20 |is treat|ed as a |
|000009a0| 73 75 62 6d 65 6e 75 2e | 0a 54 68 65 20 66 69 72 |submenu.|.The fir|
|000009b0| 73 74 20 65 6c 65 6d 65 | 6e 74 20 73 68 6f 75 6c |st eleme|nt shoul|
|000009c0| 64 20 62 65 20 74 68 65 | 20 73 75 62 6d 65 6e 75 |d be the| submenu|
|000009d0| 20 6e 61 6d 65 2e 20 20 | 54 68 61 74 27 73 20 75 | name. |That's u|
|000009e0| 73 65 64 20 61 73 20 74 | 68 65 0a 6d 65 6e 75 20 |sed as t|he.menu |
|000009f0| 69 74 65 6d 20 69 6e 20 | 74 68 65 20 74 6f 70 2d |item in |the top-|
|00000a00| 6c 65 76 65 6c 20 6d 65 | 6e 75 2e 20 20 54 68 65 |level me|nu. The|
|00000a10| 20 63 64 72 20 6f 66 20 | 74 68 65 20 73 75 62 6d | cdr of |the subm|
|00000a20| 65 6e 75 20 6c 69 73 74 | 0a 69 73 20 61 20 6c 69 |enu list|.is a li|
|00000a30| 73 74 20 6f 66 20 6d 65 | 6e 75 20 69 74 65 6d 73 |st of me|nu items|
|00000a40| 2c 20 61 73 20 61 62 6f | 76 65 2e 22 5d 29 29 0a |, as abo|ve."])).|
|00000a50| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 4d 88 |(byte-co|de "..M.|
|00000a60| c2 c3 4b 4d 87 22 20 5b | 65 61 73 79 2d 6d 65 6e |..KM." [|easy-men|
|00000a70| 75 2d 64 6f 2d 64 65 66 | 69 6e 65 20 23 5b 28 73 |u-do-def|ine #[(s|
|00000a80| 79 6d 62 6f 6c 20 6d 61 | 70 73 20 64 6f 63 20 6d |ymbol ma|ps doc m|
|00000a90| 65 6e 75 29 20 22 08 09 | 4c 88 08 c2 c3 0c c5 c6 |enu) "..|L.......|
|00000aa0| c7 c8 08 44 af 07 4d 88 | c9 ca cb 0e 0c 21 ab 85 |...D..M.|.....!..|
|00000ab0| 0e 0c 43 aa 82 0e 0c 5c | 22 87 22 20 5b 73 79 6d |..C....\|"." [sym|
|00000ac0| 62 6f 6c 20 6d 65 6e 75 | 20 6c 61 6d 62 64 61 20 |bol menu| lambda |
|00000ad0| 28 65 29 20 64 6f 63 20 | 28 69 6e 74 65 72 61 63 |(e) doc |(interac|
|00000ae0| 74 69 76 65 20 22 40 65 | 22 29 20 28 72 75 6e 2d |tive "@e|") (run-|
|00000af0| 68 6f 6f 6b 73 20 27 61 | 63 74 69 76 61 74 65 2d |hooks 'a|ctivate-|
|00000b00| 6d 65 6e 75 62 61 72 2d | 68 6f 6f 6b 29 20 28 73 |menubar-|hook) (s|
|00000b10| 65 74 71 20 7a 6d 61 63 | 73 2d 72 65 67 69 6f 6e |etq zmac|s-region|
|00000b20| 2d 73 74 61 79 73 20 27 | 74 29 20 70 6f 70 75 70 |-stays '|t) popup|
|00000b30| 2d 6d 65 6e 75 20 6d 61 | 70 63 61 72 20 23 5b 28 |-menu ma|pcar #[(|
|00000b40| 6d 61 70 29 20 22 c0 09 | c2 0b 23 87 22 20 5b 64 |map) "..|..#." [d|
|00000b50| 65 66 69 6e 65 2d 6b 65 | 79 20 6d 61 70 20 62 75 |efine-ke|y map bu|
|00000b60| 74 74 6f 6e 33 20 73 79 | 6d 62 6f 6c 5d 20 34 5d |tton3 sy|mbol] 4]|
|00000b70| 20 6b 65 79 6d 61 70 70 | 20 6d 61 70 73 5d 20 39 | keymapp| maps] 9|
|00000b80| 5d 20 65 61 73 79 2d 6d | 65 6e 75 2d 63 68 61 6e |] easy-m|enu-chan|
|00000b90| 67 65 20 61 64 64 2d 6d | 65 6e 75 5d 20 32 29 0a |ge add-m|enu] 2).|
|00000ba0| 28 66 73 65 74 20 27 65 | 61 73 79 2d 6d 65 6e 75 |(fset 'e|asy-menu|
|00000bb0| 2d 61 64 64 20 23 5b 28 | 6d 65 6e 75 20 26 6f 70 |-add #[(|menu &op|
|00000bc0| 74 69 6f 6e 61 6c 20 6d | 61 70 29 20 22 08 ac 82 |tional m|ap) "...|
|00000bd0| c1 87 c2 0b 40 08 5c 22 | ab 82 c1 87 08 c4 9a ab |....@.\"|........|
|00000be0| 86 c5 0b c1 44 21 87 c5 | c6 08 21 21 88 c7 c1 0b |....D!..|..!!....|
|00000bf0| 40 0b 41 23 87 22 20 5b | 63 75 72 72 65 6e 74 2d |@.A#." [|current-|
|00000c00| 6d 65 6e 75 62 61 72 20 | 6e 69 6c 20 61 73 73 6f |menubar |nil asso|
|00000c10| 63 20 6d 65 6e 75 20 28 | 6e 69 6c 29 20 73 65 74 |c menu (|nil) set|
|00000c20| 2d 62 75 66 66 65 72 2d | 6d 65 6e 75 62 61 72 20 |-buffer-|menubar |
|00000c30| 63 6f 70 79 2d 73 65 71 | 75 65 6e 63 65 20 61 64 |copy-seq|uence ad|
|00000c40| 64 2d 6d 65 6e 75 5d 20 | 34 20 22 5c 0a 41 64 64 |d-menu] |4 "\.Add|
|00000c50| 20 4d 45 4e 55 20 74 6f | 20 74 68 65 20 63 75 72 | MENU to| the cur|
|00000c60| 72 65 6e 74 20 6d 65 6e | 75 20 62 61 72 2e 22 5d |rent men|u bar."]|
|00000c70| 29 0a 28 66 73 65 74 20 | 27 65 61 73 79 2d 6d 65 |).(fset |'easy-me|
|00000c80| 6e 75 2d 72 65 6d 6f 76 | 65 20 23 5b 28 6d 65 6e |nu-remov|e #[(men|
|00000c90| 75 29 20 22 08 ad 8c c1 | 5c 6e 40 08 5c 22 ad 85 |u) "....|\n@.\"..|
|00000ca0| c3 5c 6e 40 43 21 87 22 | 20 5b 63 75 72 72 65 6e |.\n@C!."| [curren|
|00000cb0| 74 2d 6d 65 6e 75 62 61 | 72 20 61 73 73 6f 63 20 |t-menuba|r assoc |
|00000cc0| 6d 65 6e 75 20 64 65 6c | 65 74 65 2d 6d 65 6e 75 |menu del|ete-menu|
|00000cd0| 2d 69 74 65 6d 5d 20 33 | 20 22 5c 0a 52 65 6d 6f |-item] 3| "\.Remo|
|00000ce0| 76 65 20 4d 45 4e 55 20 | 66 72 6f 6d 20 74 68 65 |ve MENU |from the|
|00000cf0| 20 63 75 72 72 65 6e 74 | 20 6d 65 6e 75 20 62 61 | current| menu ba|
|00000d00| 72 2e 22 5d 29 0a 28 70 | 72 6f 76 69 64 65 20 27 |r."]).(p|rovide '|
|00000d10| 65 61 73 79 6d 65 6e 75 | 29 0a |easymenu|). |
+--------+-------------------------+-------------------------+--------+--------+